Skip to content

Restrict admin password reset to administrator email - #123

Merged
SamRepository25 merged 2 commits into
mainfrom
fix/admin-email-password-reset
Nov 23, 2026
Merged

SamRepository25 merged 2 commits into
mainfrom
fix/admin-email-password-reset

Conversation

@SamRepository25

Copy link
Copy Markdown
Owner

Changes

  • Validate the submitted email server-side against users assigned the admin role before requesting a Supabase recovery email.
  • Non-admin addresses return an invalid-email result and display a red Invalid email address toast.
  • Refresh Turnstile after invalid submissions so the user can retry.

Security

  • Admin role/email validation uses the server-side Supabase service-role client; credentials remain server-only.

Direct pushes to main are blocked by repository rules, so this is committed on a branch and submitted as a PR.

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
codeforgedev Ready Ready Preview Nov 23, 2026 1:45pm UTC

@SamRepository25
SamRepository25 merged commit 1bfd24b into main Nov 23, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 76fbdc92 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant